package hu.issue.ejb;

import hu.issue.entity.Task;
import hu.issue.exceptions.TaskNotFoundException;
import hu.issue.exceptions.UserNotFoundException;

import java.util.List;

public interface TaskService {

	void createTask(Task task);

	List<Task> getInactiveTasks();

	Task findTaskById(int taskId) throws TaskNotFoundException;

	void assignTaskToMySelf(int taskId) throws TaskNotFoundException;

	void closeTask(int taskId) throws TaskNotFoundException;

	void assignTo(int taskId, String userName) throws TaskNotFoundException, UserNotFoundException;

}
